import java.util.LinkedList;
import java.util.Queue;
import java.util.Random;


public class E28_QueueDouble {

	
	public static void main(String[] args) {
		Queue<Double> queue = new LinkedList<Double>();
		Random rand = new Random(47);
		
		for(int i=0;i<10;i++){
			queue.offer(rand.nextDouble());
		}
		
		while(queue.peek()!=null){
			System.out.println(queue.poll());
		}
		
	}
	
}
